package com.dempsey.openfeignconsumer.controller;

import com.dempsey.openfeignconsumer.remoteService.RemoteClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Dempsey
 * Date 2022/4/15
 * Description
 */

@RestController
public class ConsumerController {

    @Autowired
    private RemoteClient remoteClient;

    @GetMapping("/consumer")
    public String consumer() {
        return "success:" + remoteClient.hello();
    }

}
